package cn.zxl.spring.holiday.job.mapper;

import cn.zxl.spring.holiday.job.domain.Department;
import cn.zxl.spring.holiday.job.domain.Employee;
import cn.zxl.spring.holiday.job.qo.QueryObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bofeifei
 * @since 2021-10-01
 */
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {
    void saveOne(Employee employee);

    void updateOne(Employee employee);

    List<Employee> findAll(QueryObject qo);

    Employee findOne(Long id);

    Employee findOneDeptById(Long id);

    void batchInsert(@Param("employees") List<Employee> employees);


}
